package member;

//import admin.AdminMemberTO;
import member.MemberDAOOracle;

import member.MemberException;
import member.MemberTO;

import java.sql.SQLException;

import javax.naming.NamingException;
import java.util.ArrayList;

public class MemberControl {
	
	private MemberDAOOracle getDAOOracle() throws  MemberException, SQLException {
		
		 try{		
			   return new MemberDAOOracle();
		 } catch ( NamingException ne ){

				throw new MemberException( ne.getMessage( )  );
		 }
	}//end

public void memInsert(MemberTO memlist) throws  MemberException, SQLException{
	MemberDAOOracle daoDB = getDAOOracle();
	System.out.println("Control");
	
	 try{
			daoDB.memInsert(memlist);
	 } catch ( SQLException sqle ){
			throw new MemberException( sqle.getMessage() );
	 } // end try ~ catch
}

}
